import { NgModule }             from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HashLocationStrategy, LocationStrategy} from '@angular/common'
import { ChatComponent }      from './chat.component';
import { IndexComponent }      from './index.component';

const routes: Routes = [
  { path: '', component: IndexComponent },
  { path: 'topic/:id', component: ChatComponent },
];

@NgModule({
  imports: [ RouterModule.forRoot(routes,{useHash: true}) ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {}


/*
Copyright 2017 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/